Optimal. Leaf size=162 \[ \frac {b c d^2 \sqrt {-1+c^2 x^2}}{\sqrt {c^2 x^2}}-\frac {b e^2 x^2 \sqrt {-1+c^2 x^2}}{6 c \sqrt {c^2 x^2}}-\frac {d^2 \left (a+b \sec ^{-1}(c x)\right )}{x}+2 d e x \left (a+b \sec ^{-1}(c x)\right )+\frac {1}{3} e^2 x^3 \left (a+b \sec ^{-1}(c x)\right )-\frac {b e \left (12 c^2 d+e\right ) x \tanh ^{-1}\left (\frac {c x}{\sqrt {-1+c^2 x^2}}\right )}{6 c^2 \sqrt {c^2 x^2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.09, antiderivative size = 162, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 7, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.333, Rules used = {276, 5346, 12,
1279, 396, 223, 212} \begin {gather*} -\frac {d^2 \left (a+b \sec ^{-1}(c x)\right )}{x}+2 d e x \left (a+b \sec ^{-1}(c x)\right )+\frac {1}{3} e^2 x^3 \left (a+b \sec ^{-1}(c x)\right )+\frac {b c d^2 \sqrt {c^2 x^2-1}}{\sqrt {c^2 x^2}}-\frac {b e x \left (12 c^2 d+e\right ) \tanh ^{-1}\left (\frac {c x}{\sqrt {c^2 x^2-1}}\right )}{6 c^2 \sqrt {c^2 x^2}}-\frac {b e^2 x^2 \sqrt {c^2 x^2-1}}{6 c \sqrt {c^2 x^2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 212
Rule 223
Rule 276
Rule 396
Rule 1279
Rule 5346
Rubi steps
\begin {align*} \int \frac {\left (d+e x^2\right )^2 \left (a+b \sec ^{-1}(c x)\right )}{x^2} \, dx &=-\frac {d^2 \left (a+b \sec ^{-1}(c x)\right )}{x}+2 d e x \left (a+b \sec ^{-1}(c x)\right )+\frac {1}{3} e^2 x^3 \left (a+b \sec ^{-1}(c x)\right )-\frac {(b c x) \int \frac {-3 d^2+6 d e x^2+e^2 x^4}{3 x^2 \sqrt {-1+c^2 x^2}} \, dx}{\sqrt {c^2 x^2}}\\ &=-\frac {d^2 \left (a+b \sec ^{-1}(c x)\right )}{x}+2 d e x \left (a+b \sec ^{-1}(c x)\right )+\frac {1}{3} e^2 x^3 \left (a+b \sec ^{-1}(c x)\right )-\frac {(b c x) \int \frac {-3 d^2+6 d e x^2+e^2 x^4}{x^2 \sqrt {-1+c^2 x^2}} \, dx}{3 \sqrt {c^2 x^2}}\\ &=\frac {b c d^2 \sqrt {-1+c^2 x^2}}{\sqrt {c^2 x^2}}-\frac {d^2 \left (a+b \sec ^{-1}(c x)\right )}{x}+2 d e x \left (a+b \sec ^{-1}(c x)\right )+\frac {1}{3} e^2 x^3 \left (a+b \sec ^{-1}(c x)\right )-\frac {(b c x) \int \frac {6 d e+e^2 x^2}{\sqrt {-1+c^2 x^2}} \, dx}{3 \sqrt {c^2 x^2}}\\ &=\frac {b c d^2 \sqrt {-1+c^2 x^2}}{\sqrt {c^2 x^2}}-\frac {b e^2 x^2 \sqrt {-1+c^2 x^2}}{6 c \sqrt {c^2 x^2}}-\frac {d^2 \left (a+b \sec ^{-1}(c x)\right )}{x}+2 d e x \left (a+b \sec ^{-1}(c x)\right )+\frac {1}{3} e^2 x^3 \left (a+b \sec ^{-1}(c x)\right )--\frac {\left (b \left (-12 c^2 d e-e^2\right ) x\right ) \int \frac {1}{\sqrt {-1+c^2 x^2}} \, dx}{6 c \sqrt {c^2 x^2}}\\ &=\frac {b c d^2 \sqrt {-1+c^2 x^2}}{\sqrt {c^2 x^2}}-\frac {b e^2 x^2 \sqrt {-1+c^2 x^2}}{6 c \sqrt {c^2 x^2}}-\frac {d^2 \left (a+b \sec ^{-1}(c x)\right )}{x}+2 d e x \left (a+b \sec ^{-1}(c x)\right )+\frac {1}{3} e^2 x^3 \left (a+b \sec ^{-1}(c x)\right )--\frac {\left (b \left (-12 c^2 d e-e^2\right ) x\right ) \text {Subst}\left (\int \frac {1}{1-c^2 x^2} \, dx,x,\frac {x}{\sqrt {-1+c^2 x^2}}\right )}{6 c \sqrt {c^2 x^2}}\\ &=\frac {b c d^2 \sqrt {-1+c^2 x^2}}{\sqrt {c^2 x^2}}-\frac {b e^2 x^2 \sqrt {-1+c^2 x^2}}{6 c \sqrt {c^2 x^2}}-\frac {d^2 \left (a+b \sec ^{-1}(c x)\right )}{x}+2 d e x \left (a+b \sec ^{-1}(c x)\right )+\frac {1}{3} e^2 x^3 \left (a+b \sec ^{-1}(c x)\right )-\frac {b e \left (12 c^2 d+e\right ) x \tanh ^{-1}\left (\frac {c x}{\sqrt {-1+c^2 x^2}}\right )}{6 c^2 \sqrt {c^2 x^2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.13, size = 136, normalized size = 0.84 \begin {gather*} \frac {c^2 \left (b \sqrt {1-\frac {1}{c^2 x^2}} x \left (6 c^2 d^2-e^2 x^2\right )+2 a c \left (-3 d^2+6 d e x^2+e^2 x^4\right )\right )+2 b c^3 \left (-3 d^2+6 d e x^2+e^2 x^4\right ) \sec ^{-1}(c x)-b e \left (12 c^2 d+e\right ) x \log \left (\left (1+\sqrt {1-\frac {1}{c^2 x^2}}\right ) x\right )}{6 c^3 x} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.15, size = 272, normalized size = 1.68
method | result | size |
derivativedivides | \(c \left (\frac {a \left (2 c^{3} d e x +\frac {e^{2} c^{3} x^{3}}{3}-\frac {c^{3} d^{2}}{x}\right )}{c^{4}}+\frac {2 b \,\mathrm {arcsec}\left (c x \right ) d e x}{c}+\frac {b \,\mathrm {arcsec}\left (c x \right ) e^{2} x^{3}}{3 c}-\frac {b \,\mathrm {arcsec}\left (c x \right ) d^{2}}{c x}+\frac {b \left (c^{2} x^{2}-1\right ) d^{2}}{c^{2} x^{2} \sqrt {\frac {c^{2} x^{2}-1}{c^{2} x^{2}}}}-\frac {2 b \sqrt {c^{2} x^{2}-1}\, d e \ln \left (c x +\sqrt {c^{2} x^{2}-1}\right )}{c^{3} \sqrt {\frac {c^{2} x^{2}-1}{c^{2} x^{2}}}\, x}-\frac {b \left (c^{2} x^{2}-1\right ) e^{2}}{6 c^{4} \sqrt {\frac {c^{2} x^{2}-1}{c^{2} x^{2}}}}-\frac {b \sqrt {c^{2} x^{2}-1}\, e^{2} \ln \left (c x +\sqrt {c^{2} x^{2}-1}\right )}{6 c^{5} \sqrt {\frac {c^{2} x^{2}-1}{c^{2} x^{2}}}\, x}\right )\) | \(272\) |
default | \(c \left (\frac {a \left (2 c^{3} d e x +\frac {e^{2} c^{3} x^{3}}{3}-\frac {c^{3} d^{2}}{x}\right )}{c^{4}}+\frac {2 b \,\mathrm {arcsec}\left (c x \right ) d e x}{c}+\frac {b \,\mathrm {arcsec}\left (c x \right ) e^{2} x^{3}}{3 c}-\frac {b \,\mathrm {arcsec}\left (c x \right ) d^{2}}{c x}+\frac {b \left (c^{2} x^{2}-1\right ) d^{2}}{c^{2} x^{2} \sqrt {\frac {c^{2} x^{2}-1}{c^{2} x^{2}}}}-\frac {2 b \sqrt {c^{2} x^{2}-1}\, d e \ln \left (c x +\sqrt {c^{2} x^{2}-1}\right )}{c^{3} \sqrt {\frac {c^{2} x^{2}-1}{c^{2} x^{2}}}\, x}-\frac {b \left (c^{2} x^{2}-1\right ) e^{2}}{6 c^{4} \sqrt {\frac {c^{2} x^{2}-1}{c^{2} x^{2}}}}-\frac {b \sqrt {c^{2} x^{2}-1}\, e^{2} \ln \left (c x +\sqrt {c^{2} x^{2}-1}\right )}{6 c^{5} \sqrt {\frac {c^{2} x^{2}-1}{c^{2} x^{2}}}\, x}\right )\) | \(272\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.27, size = 198, normalized size = 1.22 \begin {gather*} \frac {1}{3} \, a x^{3} e^{2} + {\left (c \sqrt {-\frac {1}{c^{2} x^{2}} + 1} - \frac {\operatorname {arcsec}\left (c x\right )}{x}\right )} b d^{2} + 2 \, a d x e + \frac {1}{12} \, {\left (4 \, x^{3} \operatorname {arcsec}\left (c x\right ) - \frac {\frac {2 \, \sqrt {-\frac {1}{c^{2} x^{2}} + 1}}{c^{2} {\left (\frac {1}{c^{2} x^{2}} - 1\right )} + c^{2}} + \frac {\log \left (\sqrt {-\frac {1}{c^{2} x^{2}} + 1} + 1\right )}{c^{2}} - \frac {\log \left (\sqrt {-\frac {1}{c^{2} x^{2}} + 1} - 1\right )}{c^{2}}}{c}\right )} b e^{2} + \frac {{\left (2 \, c x \operatorname {arcsec}\left (c x\right ) - \log \left (\sqrt {-\frac {1}{c^{2} x^{2}} + 1} + 1\right ) + \log \left (-\sqrt {-\frac {1}{c^{2} x^{2}} + 1} + 1\right )\right )} b d e}{c} - \frac {a d^{2}}{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 3.17, size = 232, normalized size = 1.43 \begin {gather*} \frac {2 \, a c^{3} x^{4} e^{2} + 6 \, b c^{4} d^{2} x + 12 \, a c^{3} d x^{2} e - 6 \, a c^{3} d^{2} + 2 \, {\left (3 \, b c^{3} d^{2} x - 3 \, b c^{3} d^{2} + {\left (b c^{3} x^{4} - b c^{3} x\right )} e^{2} + 6 \, {\left (b c^{3} d x^{2} - b c^{3} d x\right )} e\right )} \operatorname {arcsec}\left (c x\right ) - 4 \, {\left (3 \, b c^{3} d^{2} x - 6 \, b c^{3} d x e - b c^{3} x e^{2}\right )} \arctan \left (-c x + \sqrt {c^{2} x^{2} - 1}\right ) + {\left (12 \, b c^{2} d x e + b x e^{2}\right )} \log \left (-c x + \sqrt {c^{2} x^{2} - 1}\right ) + {\left (6 \, b c^{3} d^{2} - b c x^{2} e^{2}\right )} \sqrt {c^{2} x^{2} - 1}}{6 \, c^{3} x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 7.07, size = 207, normalized size = 1.28 \begin {gather*} - \frac {a d^{2}}{x} + 2 a d e x + \frac {a e^{2} x^{3}}{3} + b c d^{2} \sqrt {1 - \frac {1}{c^{2} x^{2}}} - \frac {b d^{2} \operatorname {asec}{\left (c x \right )}}{x} + 2 b d e x \operatorname {asec}{\left (c x \right )} + \frac {b e^{2} x^{3} \operatorname {asec}{\left (c x \right )}}{3} - \frac {2 b d e \left (\begin {cases} \operatorname {acosh}{\left (c x \right )} & \text {for}\: \left |{c^{2} x^{2}}\right | > 1 \\- i \operatorname {asin}{\left (c x \right )} & \text {otherwise} \end {cases}\right )}{c} - \frac {b e^{2} \left (\begin {cases} \frac {x \sqrt {c^{2} x^{2} - 1}}{2 c} + \frac {\operatorname {acosh}{\left (c x \right )}}{2 c^{2}} & \text {for}\: \left |{c^{2} x^{2}}\right | > 1 \\- \frac {i c x^{3}}{2 \sqrt {- c^{2} x^{2} + 1}} + \frac {i x}{2 c \sqrt {- c^{2} x^{2} + 1}} - \frac {i \operatorname {asin}{\left (c x \right )}}{2 c^{2}} & \text {otherwise} \end {cases}\right )}{3 c} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 6018 vs.
\(2 (144) = 288\).
time = 2.73, size = 6018, normalized size = 37.15 \begin {gather*} \text {Too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {{\left (e\,x^2+d\right )}^2\,\left (a+b\,\mathrm {acos}\left (\frac {1}{c\,x}\right )\right )}{x^2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________